let arr = new Set([1, 2, 3, [1, 2, 2, 3, [4, 5, 6, [12, 12, 13, 2, 3]]]].flat(9))
console.log(...arr)


let downloadFile = document.getElementById("downloadImportInfo");
let fileUrl = "D:/test.xlsx";
downloadFile.onclick = function () {
    const xhr = new XMLHttpRequest();
    let url = "localhost:8000/api/downloadUrl/" + fileUrl;
    console.log(url);
    xhr.responseType = 'blob';
    xhr.onload = function () {
        if (this.status == "200") {
            //获取响应文件流　　
            let blob = this.response;
            let a = document.createElement('a');
            a.style = 'display:none';
            const reader = new FileReader();
            reader.readAsDataURL(blob);
            reader.onload = function (e) {
                a.download = "试验计划信息.xlsx";
                a.href = e.target.result;
                document.body.append(a);
                a.click();
                a.remove();
            }
        }
    }
    xhr.open("get", url, true);
    xhr.send();
}